package com.lovo.lesson8.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lovo.lesson8.dao.UserDAO;
import com.lovo.lesson8.model.dos.UserDO;
import com.lovo.lesson8.service.UserService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class UserServiceImpl extends ServiceImpl<UserDAO, UserDO> implements UserService {
    @Resource
    private UserDAO userDAO;
    @Override
    public List<UserDO> findByPhone(String phone) {
        return userDAO.selectByPhone(phone);
    }
}
